package com.example.mapper;

import com.example.entity.Modelfiles;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.vo.ModelfilesVO;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 陈昌吉
 * @since 2024-04-16
 */
@Mapper
public interface ModelfilesMapper extends BaseMapper<Modelfiles> {


   // selectAll(Integer hid, String sta, String state);

    @Update(" UPDATE modelfiles  SET state=#{state}  WHERE modelfiles.login_id=#{loginId} AND modelfiles.hid=#{hid} AND modelfiles.name=#{name}")
    void updateModelFiles(Modelfiles modelfiles);

    /**
     * 审核模型文件获取相关接口
     * @param hid
     * @param sta
     * @param state
     * @return
     */
    Page<ModelfilesVO> selectAll(Integer hid, String sta, String state);


//    List<Modelfiles> selectAll(ModelFilesPageDTO modelFilesPageDTO,String sta);
}
